(function($, gmwk) {
  
    // Configure and bootstrap the application
    gmwk.config = function () {

        gmwk.create("API", {bSingleton: true});
        gmwk.create("Router", {bSingleton: true});
        
        gmwk.create(
            "QOTD",
            {
                bSingleton: true,
                sTemplate: "QOTD",
                jqParentContainer: $(".QOTD_container")
            }
        );
        
        gmwk.bAuthorized = false;
        
        // Check URL for state
        if (!gmwk.Router.route()) {
            // If no known state specified load landing page.
            gmwk.Router.load({l: "Dashboard"}, gmwk.Router.PARAMS_REPLACE_STATE);
            //gmwk.Router.notFound();
        }
    
    }
    
})(jQuery, window.gmwk);

